package com.base.logistics.jdl.bean.print;

import java.io.Serializable;

/**
 * <pre>
 * 获取打印模板列表响应对象
 * </pre>
 * @since 2021-02-19
 */
public class GetTemplateListResponse  implements Serializable {

    /**
     * 响应码
     */
    private String code;

    /**
     * 响应信息
     */
    private String message;

    /**
     * 所有物流公司和用户标准模板列表
     */
    private TemplateDTO datas;

    public GetTemplateListResponse() {
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public TemplateDTO getDatas() {
        return this.datas;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setDatas(TemplateDTO datas) {
        this.datas = datas;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof GetTemplateListResponse)) return false;
        final GetTemplateListResponse other = (GetTemplateListResponse) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$code = this.getCode();
        final Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
        final Object this$message = this.getMessage();
        final Object other$message = other.getMessage();
        if (this$message == null ? other$message != null : !this$message.equals(other$message)) return false;
        final Object this$datas = this.getDatas();
        final Object other$datas = other.getDatas();
        if (this$datas == null ? other$datas != null : !this$datas.equals(other$datas)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof GetTemplateListResponse;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        final Object $message = this.getMessage();
        result = result * PRIME + ($message == null ? 43 : $message.hashCode());
        final Object $datas = this.getDatas();
        result = result * PRIME + ($datas == null ? 43 : $datas.hashCode());
        return result;
    }

    public String toString() {
        return "GetTemplateListResponse(code=" + this.getCode() + ", message=" + this.getMessage() + ", datas=" + this.getDatas() + ")";
    }
}
